@import './variables.scss';
@import './mixin.scss';

// header 布局
.enc-header {
  padding: 0;
  height: 66px !important;
  line-height: 66px;
  background: #394352;
  color: #fff;
}

.right-menu {
  float: right;
  height: 100%;
  margin-top: -52px;
  //右侧图标
  .el-popover {
    padding: 17px 0px;
    color: #C8CFD5;
    top: 66px !important;
  }
  .el-button {
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 0;
    border: 1px solid #fff !important;
    padding: 0;
    border-radius: 50%;
    float: left;
    background: transparent !important;
    &.user {
        background: #cac fd5;
        vertical-align: top;
        i {
            font-size: 18px;
            color: #fff;
        }
    }
    &.setting {
        background: #50609c;
        vertical-align: top;
        i {
            font-size: 18px;
            color: #fff;
        }
    }
    &.document {
        background: #479bd9;
        vertical-align: top;
        i {
            font-size: 18px;
            color: #fff;
        }
    }
  }
}


header {

  // 图标样式
  .enc-logo {
    display: inline-block;
    width: 210px;
    background: #d7dce0;
    height: 100%;
    line-height: 66px;
    text-align: center;
    vertical-align: top;

    img {
      width: 159px;
      vertical-align: middle;
    }
  }

  // 头部菜单样式
  .nav-menu {
    padding-left: 20px;
  }
  .is-active {
    i {
        color: #409efe;
    }
}
  .el-menu-item {
    height: 66px;
    line-height: 66px;
    font-weight: 400;
    font-size: 15px;

    i {
      margin-right: 7px;
      font-size: 24px;
      color: #425365;
    }
  }

  .el-menu-item:hover i {
    color: #fff !important;
  }

  .el-menu--horizontal>.el-menu-item {
    height: 66px;
    line-height: 66px;
    border-bottom: 2px solid transparent;
    color: #425365;
  }

  .el-menu.el-menu--horizontal {
    border-bottom: 0px !important;
  }
}

.warn-popover li:hover {
  color: #fff !important;
  @include el-table-hover($el-page-theme);
}


//面包屑样式
.el-breadcrumb {
  height: 45px;
  font-size: 15px;
  line-height: 45px;
  margin: 5px 0px 0px 0px;
  padding: 0px 20px 0px 20px;
  background: #f8f9fb;
  color: #606266;
}

// 内容整体高度
.app-main {
  height: calc(100vh - 0px);
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f8f9fb;
}

// 内容区布局
.main-content {
  padding: 0 20px 0 20px;
}

// 按钮样式
.el-button--medium {
  padding: 0 12px;
  font-size: 15px;
  border-radius: 0;
  height: 36px;
  line-height: 36px;

  i:hover,
  i:active {
    color: #fff !important;
  }

  @include el-button--primary($el-button-default);
}

.el-button--primary {
  padding: 0 12px;
  font-size: 15px;
  border-radius: 0;
  height: 36px;
  color: #fff !important;
  line-height: 36px;

  i:hover,
  i:active {
    color: #fff !important;
  }

  @include el-button--primary($el-button-default);
}

.el-button--primary:hover {
  opacity: 0.5;
  @include el-button--primary($el-button-default);
}

.el-button--primary:focus {
  @include el-button--primary($el-button-default);
}

.el-button--medium:focus {
  @include el-button--primary($el-button-default);
}

.el-button--medium:hover {
  opacity: 0.5;
  @include el-button--primary($el-button-default);
}

.el-button--medium:active,
.el-button--primary:active {
  opacity: 1;
  background: #009DDF;
  border-color: #009DDF;
}

.el-button--primary.is-disabled,
.el-button--primary.is-disabled:active,
.el-button--primary.is-disabled:focus,
.el-button--primary.is-disabled:hover {
  opacity: 1;
  background: #BCBCBC !important;
  border-color: #BCBCBC !important;
}

.el-button--small {
  font-size: 14px;
}

// 滚动条
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  overflow: hidden;
}

::-webkit-scrollbar-thumb {
  @include el-scrollColor($el-theme-scroll-primary);
  border-radius: 4px;
}

::-webkit-resizer {
  display: none;
}

::-webkit-scrollbar-corner {
  display: none;
}

// 输入框
.el-pagination__editor.el-input .el-input__inner {
  height: 28px;
  line-height: 28px;
}

.el-input__suffix-inner .el-input__icon {
  line-height: 28px;
}

.el-input--medium .el-input__inner {
  height: 36px;
  line-height: 36px;
}

.el-form-item__label {
  line-height: 36px;
}

.el-input__inner {
  padding: 0 12px;
}

.el-textarea__inner {
  background: #fff;
}

// 下拉选择框
.el-select {
  width: 100%;
}
.el-select .el-input .el-select__caret {
  color: #C0C4CC;
  vertical-align: top;
}

.el-select .el-input__suffix {
  display: inline-block;
  width: 29px;
  height: 29px;
  top: 3px;
  background-color:rgba(0, 0, 0, 0);
  right: 3px;
}

.el-select-dropdown,
.el-popper {
  margin-top: 0 !important;
  margin: 0;
}

.el-select-dropdown__list {
  padding: 12px 0;
}

.el-select-dropdown__item {
  padding: 0 12px;
}

.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover {
  background-color: #E6EAED;
}

// 弹出框
.el-dialog .el-dialog__header {
  margin: 0 40px !important;
  padding: 20px 0 !important;

  .el-dialog__title {
    font-size: 18px !important;
  }

  i {
    font-size: 21px;
  }
}

.el-dialog__body {
  max-height: 600px;
  overflow: scroll;
  margin: 0 40px !important;
  padding: 0 0 40px 0 !important;
}

// 弹出框线条
.title-gra {
  margin: 0;
  padding: 0;
  margin-bottom: 20px;
  width: 100%;

  .grab {
    height: 4px;
    display: inline-block;
  }

  .gra-l {
    width: 50px !important;
    float: left;
    @include el-dialog-contanst($el-page-theme);
    // @include  el-dialog-contanst-lp($el-primary-theme1);
  }

  .gra-r {
    width: 100% !important;
    @include el-dialog-contanst-lp($el-primary-theme1);
  }
}

// 弹出框按钮右对齐
.mr-btn {
  text-align: right !important;
}

// 表格
.el-table__header {
  tr {
    height: 60px;
  }
}


.el-table .cell,
.el-table th div,
.el-table--border td:first-child .cell,
.el-table--border th:first-child .cell {
  padding-left: 12px;
}

.el-table .cell,
.el-table th div {
  padding-right: 12px;
}

.el-table .cell{
  text-align: left ;
}
.el-table .is-center .cell {
  text-align: center ;
}
  // 修改斑马行颜色
.el-table--striped .el-table__body tr.el-table__row--striped td {
    background: #F7FAFC;
}

// 左侧栏的收缩
.sidebar-control-btn {
  display: block;
  position: absolute;
  z-index: 1000;
  top: 50%;
  width: 15px;
  height: 38px;
  border: 1px solid #425365;
  background-color: #425365;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  line-height: 38px;

  i {
    margin-left: -3px;
  }
}

// 分页
.el-pagination.is-background .el-pager li:not(.disabled).active {
  @include el-bgcolor($el-page-theme);
}

.el-pagination.is-background .el-pager li:not(.disabled):hover {
  opacity: 0.3;
  @include el-bgcolor($el-page-theme);
}

.el-pager li {
  height: 26px;
  line-height: 26px;
  border-radius: 0 !important;
}

// check-box 
.el-checkbox__label {
  padding-left: 7px;
}

// 图标hover
.enc-icon-btn {
  cursor: pointer;
  font-size: 21px;
  float: left;
}

.enc-table-icon {
  cursor: pointer;
  font-size: 21px;
  margin-right: 7px;
}

[class*="enc-icon"]:hover,
[class*="enc-icon"]:active {
  @include el-icon-color($el-kittle-icon-span);
}

.el-radio-button--medium .el-radio-button__inner {
  border-radius: 0px !important;
}

.el-input__inner {
  background: #fff;
}

.doCearch,
.doCearch:focus {
    @include el-button--primary($el-primary-theme);
}



// 提示框的样式
.el-message-box {
  padding: 40px;
  border-radius: 0px;
}

.el-message-box__header {
  padding: 0px;
}

.el-message-box__content {
  padding: 24px 0px 40px 0px;
}

.el-message-box__btns {
  padding: 0px;
}

.el-message-box__title {
  padding: 0px;
}

.el-message-box__headerbtn {
  top: 0px;
  right: 0px;
}

.el-message-box__status {
  top: 42%;
}

.el-tooltip.focusing {
  outline: none;
}

.dialog-body-auto {
  max-height: 550px;
  overflow: auto;
  padding: 0px 20px 0px 20px;
}

.mt-20 {
  margin-top: 20px;
}

.btn-center {
  vertical-align: middle;
}


//高级检索
.searchDiv {
  height: 45px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  margin-top:-5vh;
}

.high-search {
  display: inline-block;
  font-size: 15px;
  cursor: pointer;
  width: 100px;
  height: 36px;
  border: 1px solid #c9cdd0;
  line-height: 36px;
  text-align: center;
  position: relative;
  margin: 0 5px 0 5px;
}

.dataSearch {
  display: inline-block;
  width: 240px;
  height: 45px;
  line-height: 45px;
  margin-right: 5px;
}
.checkDiv {
  padding: 30px;
  top: 45px;
  position: absolute;
  z-index: 1001;
  border: 1px solid #eff3f6;
  border-radius: 0px;
  background-color: #fff;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  max-width: 700px;
  right: 0px;
}
.el-range-editor--medium .el-range-input{
  color: #4f609d;
}

.el-table__body tbody tr:nth-child(2n) {
  background-color: #e6e8ed;
}
.el-table__body tbody tr:nth-child(2n + 1) {
  background-color: #eff3f6;
}
// 鼠标移动到某一行时显示的颜色
.el-table--enable-row-hover .el-table__body tr:hover>td {
  @include el-scrollColor($el-theme-scroll-primary);
}
.el-table__body tr.hover-row>td {
  @include el-scrollColor($el-theme-scroll-primary);
}
.el-table--striped .el-table__body tr.hover-row>td{
  @include el-scrollColor($el-theme-scroll-primary);
}

.el-table--enable-row-hover .el-table__body tr:hover > td{
  color:#000
}
.x-handel {
  margin-right:12px; 
  margin-left:5px; 
  font-size:20px; 
  cursor: pointer;
}
// 更改验证通过后的绿色
.el-form-item.is-success .el-input__inner, .el-form-item.is-success
 .el-input__inner:focus, .el-form-item.is-success .el-textarea__inner, 
 .el-form-item.is-success .el-textarea__inner:focus {
  border-color: #c9cdd0
 }
